﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FYP14
{
    public partial class ReceptionistDefault : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnFirst_Click(object sender, EventArgs e)
        {
            Response.Redirect("ViewAppoinments.aspx");
        }

        protected void btnSecond_Click(object sender, EventArgs e)
        {
            Response.Redirect("ViewPatients.aspx");
        }

        protected void btnThird_Click(object sender, EventArgs e)
        {
            Response.Redirect("Visit.aspx");
        }

        protected void btnFourth_Click(object sender, EventArgs e)
        {
            Response.Redirect("viewMedicines.aspx");
        }
        protected void btnVisit_Click(object sender, EventArgs e)
        {
            Response.Redirect("Visit.aspx");
        }

        [System.Web.Services.WebMethod]
        public static string GetServerDate()
        {
            HttpContext.Current.Session.Remove("Login");
            //HttpContext.Current.Response.Redirect("Login.aspx");
            return DateTime.Now.ToLocalTime().ToString();
            //redirect();
        }

        //private static void redirect()
        //{
        //    HttpContext.Current.Response.Redirect("Login.aspx");
        //}
    }
}